package mutsumimod.cards.deprecated;

import basemod.AutoAdd;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.actions.SkyBallAction;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.powers.SkyBallPower;
import mutsumimod.util.CardStats;

@Deprecated
@AutoAdd.Ignore
public class SkyBall extends BaseCard {
    public static final String ID = makeID(SkyBall.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.POWER,
            CardRarity.RARE,
            CardTarget.SELF,
            1
    );

    public SkyBall() {
        super(ID, info);
        setAttr(0,0,0);
        setAttrUpg(0,0,0);
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        addToBot(new SkyBallAction());
        applyPowerSelf(new SkyBallPower(p));
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new SkyBall();
    }

    @Override
    public void updateDescription() {
        if(upgraded){
            this.rawDescription=cardStrings.UPGRADE_DESCRIPTION;
        }else{
            this.rawDescription=cardStrings.DESCRIPTION;
        }
        initializeDescription();
    }

    @Override
    public void upgrade() {
        if(!upgraded){
            upgradeName();
            updateDescription();
            isInnate=true;
        }
    }


}
